package com.beetl.jodd;

import javax.servlet.ServletContext;

import org.beetl.ext.jodd.BeetlActionResult;

import jodd.madvoc.WebApplication;
import jodd.madvoc.component.MadvocConfig;
import jodd.upload.impl.AdaptiveFileUploadFactory;

public class MyWebApplication  extends WebApplication{

     @Override
     protected void init(MadvocConfig madvocConfig, ServletContext servletContext) {
         ((AdaptiveFileUploadFactory) madvocConfig.getFileUploadFactory())
         .setBreakOnError(true);
         madvocConfig.setDefaultActionResult(BeetlActionResult.class);       

     }
 }

